﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Liger.Web.Common;
using Liger.Web.Common.Extensions;

namespace Liger.Web.UI
{


    public class GridGroupingSettingsBuilder
    {
        private readonly GridGroupingSettings grouping;
        public GridGroupingSettingsBuilder(GridGroupingSettings grouping)
        {
            this.grouping = grouping;
        }


        public GridGroupingSettingsBuilder ColumnName(string name)
        {
            if(name.HasValue())
                this.grouping.GroupColumnName = name;

            return this;
        }
        public GridGroupingSettingsBuilder ColumnDisplay(string display)
        {
            this.grouping.GroupColumnDisplay = display;
            return this;
        } 
    }
}
